#ifndef ORDERSDIALOG_H
#define ORDERSDIALOG_H

#include <QDialog>
#include <QComboBox>
#include <QListWidget>
#include "DbConnection.h"
#include "userlist.h"

class OrdersDialog : public QDialog
{
    Q_OBJECT
public:
    explicit OrdersDialog(DbConnection* db,
                          UserList* UL,
                          const int&ActionID,
                          const QList<int>&Performers,
                          QWidget *parent = 0);
private:
    DbConnection* m_db;
    int m_actionID;
    QComboBox m_performer;
    QListWidget m_reports;
    QTextBrowser m_content;
    void loadReports(const int&uid);
signals:

public slots:
private slots:
    void onCurrentItemChange(QListWidgetItem * current, QListWidgetItem* /*previous*/);
    void performerChanged(const int&index);
};

#endif // ORDERSDIALOG_H
